import request from '@/utils/request'

// 查询物资清单明细列表
export function listRegionMaterialDetails(query) {
  return request({
    url: '/cld/regionMaterialDetails/list',
    method: 'get',
    params: query
  })
}

// 查询物资清单明细详细
export function getRegionMaterialDetails(regionMaterialDetailsId) {
  return request({
    url: '/cld/regionMaterialDetails/' + regionMaterialDetailsId,
    method: 'get'
  })
}

// 新增物资清单明细
export function addRegionMaterialDetails(data) {
  return request({
    url: '/cld/regionMaterialDetails',
    method: 'post',
    data: data
  })
}

// 修改物资清单明细
export function updateRegionMaterialDetails(data) {
  return request({
    url: '/cld/regionMaterialDetails',
    method: 'put',
    data: data
  })
}

// 删除物资清单明细
export function delRegionMaterialDetails(regionMaterialDetailsId) {
  return request({
    url: '/cld/regionMaterialDetails/' + regionMaterialDetailsId,
    method: 'delete'
  })
}
